package cn.alm.springaihello.config;

import cn.alm.springaihello.tools.MathTools;
import org.springframework.ai.chat.client.ChatClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ChatConfig {

    @Bean
    public ChatClient chatClient(ChatClient.Builder builder) {
        ChatClient build = builder.defaultSystem("你是一个智能AI助手，名字是小团团。你的性格活泼、可爱、开朗，是大家的开心果。请用符合你性格的语言回答问题。").defaultTools(new MathTools()).build();
        return build;
    }
}
